//
//  CJExten+UIScreen.swift
//  CJCore
//
//  Created by 陈警卫 on 2024-06-04.
//

import UIKit
import Foundation

public extension UIScreen {
    
    @objc static var cj_bounds: CGRect {
        return CJScreen.bounds
    }
    
    @objc static var cj_size: CGSize {
        return CJScreen.size
    }
    
    @objc static var cj_width: CGFloat {
        return CJScreen.width
    }
    
    @objc static var cj_height: CGFloat {
        return CJScreen.height
    }
    
    /// 电池栏高度
    @objc static var cj_batBarHeight: CGFloat {
        return CJScreen.batBarHeight
    }
    
    /// 下巴高度
    @objc static var cj_bottomBarHeight: CGFloat {
        return CJScreen.bottomBarHeight
    }
    
    /// 判断刘海屏
    @objc static var cj_isScreenBangs: Bool {
        return CJScreen.isScreenBangs
    }
    
    /// 导航栏高度
    @objc static let cj_navBarHeight: CGFloat = CJScreen.navBarHeight
    @objc static let cj_navBatBarHeight: CGFloat = CJScreen.navBatBarHeight
    /// tab高度
    @objc static let cj_tabBarHeight: CGFloat = CJScreen.tabBarHeight
    @objc static let cj_tabBottomHeight: CGFloat = CJScreen.tabBottomHeight
    
    /// 基础尺寸
    @objc static let cj_baseSize: CGSize = CJScreen.baseSize
    /// 基础宽度比例
    @objc static let cj_scaleWidth = CJScreen.scaleWidth
}

public extension UIScreen {
    
    /// keyWindow
    @objc static var cj_keyWindow: UIWindow? {
        return CJScreen.keyWindow
    }
    
    /// normalWindow
    @objc static var cj_normalWindow: UIWindow? {
        return CJScreen.normalWindow
    }
    
    /// window
    @objc static var cj_window: UIWindow? {
        return CJScreen.window
    }
}
